const mongoose = require('mongoose')

const bannerSchema = new mongoose.Schema({
    // 图片地址
    imageUrl: {
        type: String,
        required: true
    },
    // 跳转链接
    url: {
        type: String
    },
    // 口号/标语
    slogan: {
        type: String
    }
})

const Banner = mongoose.model('Banner', bannerSchema)

module.exports = {
    Banner
}
